gtk4.git
5 years agoactionmuxer: Make it possible to enumerate local actions
Matthias Clasen [Thu, 15 Oct 2020 20:18:36 +0000 (16:18 -0400)]
actionmuxer: Make it possible to enumerate local actions

This will be useful for exposing actions via the
AT-SPI Actions interface.

Update all callers.

5 years agospinbutton: Hide the buttons from accessibility
Matthias Clasen [Thu, 15 Oct 2020 20:05:02 +0000 (16:05 -0400)]
spinbutton: Hide the buttons from accessibility

The buttons here are not really buttons (the action
is not tied to the "clicked" signal), so triggering
the buttons via a11y does not have the expected effect.

And we expose the Value interface that ATs can use
to set the value.

5 years agoemojicompletion: Avoid a memory overrun
Matthias Clasen [Thu, 15 Oct 2020 19:16:06 +0000 (15:16 -0400)]
emojicompletion: Avoid a memory overrun

Don't read beyond the beginning of the string.

Fixes: #3245
5 years agogtk-demo: Fix some issues with the multi view demo
Matthias Clasen [Thu, 15 Oct 2020 18:41:40 +0000 (14:41 -0400)]
gtk-demo: Fix some issues with the multi view demo

The nested window was not modal, causing it to be
inoperable. And the nested views within were all
shrunk down to nothingness. Give them some width.

Fixes: #3257
5 years agoMerge branch 'a11y-list-view-selection-fixes' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 17:36:47 +0000 (17:36 +0000)]
Merge branch 'a11y-list-view-selection-fixes' into 'master'

atspi: Add fold markers

See merge request GNOME/gtk!2701

5 years agoatspi: Add fold markers
Matthias Clasen [Thu, 15 Oct 2020 17:09:13 +0000 (13:09 -0400)]
atspi: Add fold markers

This makes it much easier to navigate in these
multi-implementation files.

5 years agoMerge branch 'a11y-list-view-selection-fixes' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 17:10:00 +0000 (17:10 +0000)]
Merge branch 'a11y-list-view-selection-fixes' into 'master'

A11y list view selection fixes

See merge request GNOME/gtk!2700

5 years agoMerge branch 'ebassi/for-master' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 16:55:19 +0000 (16:55 +0000)]
Merge branch 'ebassi/for-master' into 'master'

GdkWayland API cleanups

Closes #3249

See merge request GNOME/gtk!2688

5 years agoatspi: Implement Selection more correctly
Matthias Clasen [Thu, 15 Oct 2020 16:46:52 +0000 (12:46 -0400)]
atspi: Implement Selection more correctly

The Selection interface is defined in terms of child
positions, so we need to always translate from that
to model positions if we want to use the selection
model apis.

5 years agoRemove debug spew
Matthias Clasen [Thu, 15 Oct 2020 16:19:58 +0000 (12:19 -0400)]
Remove debug spew

5 years agowayland: Make gdk_wayland_device_pad_set_feedback private
Matthias Clasen [Thu, 15 Oct 2020 16:00:00 +0000 (12:00 -0400)]
wayland: Make gdk_wayland_device_pad_set_feedback private

It is not a generally useful api, and awkwardly named.

5 years agodocs: Explain the symbolic icon paintable situation
Matthias Clasen [Thu, 15 Oct 2020 14:08:03 +0000 (10:08 -0400)]
docs: Explain the symbolic icon paintable situation

Add a paragraph to the migration guide that explains
how to properly render symbolic GtkIconPaintables.

Also mention this in the GtkIconPaintable docs.

There's a reason you can't spell 'paintable' without
'pain'...

5 years agoMerge branch 'a11y/atspi' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 14:59:24 +0000 (14:59 +0000)]
Merge branch 'a11y/atspi' into 'master'

A11y/atspi

See merge request GNOME/gtk!2698

5 years agoMerge branch 'clipboard-emo' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 14:50:54 +0000 (14:50 +0000)]
Merge branch 'clipboard-emo' into 'master'

gtk-demo: Fix up image handling in the clipboard demo

Closes #3252

See merge request GNOME/gtk!2697

5 years agoMerge branch 'wip/wayland-dont-respond-to-destroyed-surface-configure' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 14:25:55 +0000 (14:25 +0000)]
Merge branch 'wip/wayland-dont-respond-to-destroyed-surface-configure' into 'master'

wayland/surface: Clear has_uncommitted_ack_configure when hiding

Closes #3262

See merge request GNOME/gtk!2696

5 years agoMerge branch 'meson-epoxy-subproject' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 13:41:47 +0000 (13:41 +0000)]
Merge branch 'meson-epoxy-subproject' into 'master'

meson: Fix error when epoxy is a subproject on Windows

See merge request GNOME/gtk!2695

5 years agogtk-demo: Fix up image handling in the clipboard demo
Matthias Clasen [Thu, 15 Oct 2020 13:16:17 +0000 (09:16 -0400)]
gtk-demo: Fix up image handling in the clipboard demo

Using GtkIconPaintable+GtkPicture is not good for symbolic
icons - they don't get properly colored that way. So change
things around to use the icon name if we have it.

Fixes: #3252
5 years agowayland/surface: Clear has_uncommitted_ack_configure when hiding
Jonas Ådahl [Thu, 15 Oct 2020 12:52:57 +0000 (14:52 +0200)]
wayland/surface: Clear has_uncommitted_ack_configure when hiding

The 'has_uncommitted_ack_configure' state was added to make sure we're
responding to 'xdg_surface.configure' events with
'xdg_surface.ack_configure' requests, as is necessary according to spec.
What we didn't do was to clear this state when hiding, meaning that if
we hid the surface after a configure event, but before the frame
finished and we processed the 'has_uncommitted_ack_configure', we'd try
to acknowledge the surface configuration after having destroyed the
surface.

Closes: #3262
5 years agoatspi: Implement Selection for list views
Matthias Clasen [Thu, 15 Oct 2020 12:35:06 +0000 (08:35 -0400)]
atspi: Implement Selection for list views

This implementation works for both GtkListView and
GtkGridView, and by extension, also for GtkColumnView
and GtkDropDown, since those just use a list view
internally.

5 years agomeson: Fix error when epoxy is a subproject on Windows
Xavier Claessens [Wed, 14 Oct 2020 21:26:23 +0000 (17:26 -0400)]
meson: Fix error when epoxy is a subproject on Windows

epoxy_dep cannot be used in a configure time check when it comes from a
subproject. Use variables set in pc file instead.

This requires https://github.com/anholt/libepoxy/pull/231.

5 years agocolumnview: Set accessible roles
Matthias Clasen [Thu, 15 Oct 2020 04:09:06 +0000 (00:09 -0400)]
columnview: Set accessible roles

Use the TREE_GRID, ROW, COLUMN_HEADER and GRID_CELL roles
for the various widgets involved in a GtkColumnView. To
enable this, we subclass GtkListView for the internal
list in the column view.

5 years agolistview: Set accessible roles
Matthias Clasen [Thu, 15 Oct 2020 03:34:51 +0000 (23:34 -0400)]
listview: Set accessible roles

Use the LIST and LIST_ITEM roles for GtkListView
and its children. Use the GRID and GRID_CELL roles
for GtkGridView and its children.

5 years agoDocument accessible roles for stacks and notebooks
Matthias Clasen [Thu, 15 Oct 2020 02:27:09 +0000 (22:27 -0400)]
Document accessible roles for stacks and notebooks

This was forgotten when I implemented the Tabs pattern.

5 years agoflowbox: Set accessible roles
Matthias Clasen [Thu, 15 Oct 2020 02:18:31 +0000 (22:18 -0400)]
flowbox: Set accessible roles

Use the GRID and GRID_CELL roles for GtkFlowBox
and GtkFlowBoxChild.

5 years agolistbox: Set accessible roles
Matthias Clasen [Thu, 15 Oct 2020 02:16:00 +0000 (22:16 -0400)]
listbox: Set accessible roles

Use the LIST and LIST_ITEM roles for GtkListBox
and GtkListBoxRow.

5 years agoMerge branch 'wip/chergert/fix-macos-popup-events' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 01:41:42 +0000 (01:41 +0000)]
Merge branch 'wip/chergert/fix-macos-popup-events' into 'master'

macos: fix popup motion and button event delivery

See merge request GNOME/gtk!2694

5 years agoMerge branch 'wip/chergert/gdk-macos-fixes' into 'master'
Matthias Clasen [Thu, 15 Oct 2020 01:41:06 +0000 (01:41 +0000)]
Merge branch 'wip/chergert/gdk-macos-fixes' into 'master'

macos: fix crash when displaying a context menu

See merge request GNOME/gtk!2693

5 years agoatspi: Add some docs
Matthias Clasen [Thu, 15 Oct 2020 01:02:02 +0000 (21:02 -0400)]
atspi: Add some docs

Add a comment that explains a few of the more subtle
points of the Atspi context tree contstruction.

5 years agoatspi: Implement Selection for notebook tabs
Matthias Clasen [Thu, 15 Oct 2020 00:52:33 +0000 (20:52 -0400)]
atspi: Implement Selection for notebook tabs

This is a bit different from the way things were done
in GTK 3 - we follow what was done for GtkStackSwitcher,
and make the tab bar carry the GTK_ACCESSIBLE_TAB_LIST
role, and implement Selection there.

5 years agonotebook: Set accessible roles and properties
Matthias Clasen [Wed, 14 Oct 2020 23:06:46 +0000 (19:06 -0400)]
notebook: Set accessible roles and properties

Set up the necessary roles, relations and properties
for the tab patterns. This parallels what we have done
for GtkStackSwitcher, and implements the Tabs pattern
as described in the ARIA authoring guidelines.

5 years agoatspi: Don't crash on unnamed stack pages
Matthias Clasen [Wed, 14 Oct 2020 23:05:36 +0000 (19:05 -0400)]
atspi: Don't crash on unnamed stack pages

GtkNotebook creates unnamed stack pages, and we should
not crash when that happens.

5 years agogizmo: Add a way to set accessible role
Matthias Clasen [Wed, 14 Oct 2020 22:37:14 +0000 (18:37 -0400)]
gizmo: Add a way to set accessible role

This will be used for some of the gizmo used
inside GtkNotebook.

5 years agoatspi: Implement Selection for GtkStackSwitcher
Matthias Clasen [Wed, 14 Oct 2020 05:06:04 +0000 (01:06 -0400)]
atspi: Implement Selection for GtkStackSwitcher

5 years agostackswitcher: Set up relations and states
Matthias Clasen [Wed, 14 Oct 2020 04:25:57 +0000 (00:25 -0400)]
stackswitcher: Set up relations and states

Set up a CONTROLS relation between each tab button
and its page, and update the SELECTED property of
the buttons to match their active state.

5 years agostackswitcher: Use the tablist and tab roles
Matthias Clasen [Wed, 14 Oct 2020 04:18:02 +0000 (00:18 -0400)]
stackswitcher: Use the tablist and tab roles

Set the tablist role on the stackswitcher itself, and
the tab role on the buttons. This is another step towards
implementing the tabs pattern for GtkStack.

5 years agoaccessible: Avoid realizing the context prematurely
Matthias Clasen [Wed, 14 Oct 2020 04:16:23 +0000 (00:16 -0400)]
accessible: Avoid realizing the context prematurely

platform change is called from gtk_widget_set_focusable
which is likely to be called early on in init(). We don't
want to create an AT context that early if we can help
it, e.g. since it makes it impossible to override the
accessible-role with a construct property.

5 years agostack: Turn pages into accessibles
Matthias Clasen [Wed, 14 Oct 2020 03:44:50 +0000 (23:44 -0400)]
stack: Turn pages into accessibles

This requires some cleanup to remove assumptions
about accessibles being widgets in the backend,
and some code to navigate the tree with these
extra objects in between widgets.

The accessibles for stack pages have the role
GTK_ACCESSIBLE_ROLE_TAB_PANEL. This is the first
step towards implementing the tabs patterns
as described in the aria authoring guidelines
for GtkStack.

5 years agomacos: fix discover of surface under cursor
Christian Hergert [Wed, 14 Oct 2020 23:59:38 +0000 (16:59 -0700)]
macos: fix discover of surface under cursor

This was incorrectly reporting the toplevel surface instead of the
popup surface that was placed above it. This fixes event delivery
to popups for selecting menu items and more.

5 years agomacos: only emit popup-layout-changed after initial present
Christian Hergert [Wed, 14 Oct 2020 23:26:52 +0000 (16:26 -0700)]
macos: only emit popup-layout-changed after initial present

Otherwise we risk being re-entrant where GtkPopover will not have a
GdkPopupLayout causing other issues.

5 years agomacos: ensure we have access to a GdkMonitor
Christian Hergert [Wed, 14 Oct 2020 23:26:14 +0000 (16:26 -0700)]
macos: ensure we have access to a GdkMonitor

5 years agoMerge branch 'wip/chergert/gdk-macos-fixes' into 'master'
Matthias Clasen [Wed, 14 Oct 2020 23:04:03 +0000 (23:04 +0000)]
Merge branch 'wip/chergert/gdk-macos-fixes' into 'master'

macos: fix button release events outside of window during grabs

See merge request GNOME/gtk!2692

5 years agomacos: allow pointer release event outside surface coords
Christian Hergert [Wed, 14 Oct 2020 22:42:45 +0000 (15:42 -0700)]
macos: allow pointer release event outside surface coords

This helps with grab situations so that we can end it when releasing
the pointer buttons outside of the window coordinates.

5 years agomacos: break grabs after sending release event
Christian Hergert [Wed, 14 Oct 2020 22:31:29 +0000 (15:31 -0700)]
macos: break grabs after sending release event

5 years agomacos: dont send crossing events during grab
Christian Hergert [Wed, 14 Oct 2020 21:08:23 +0000 (14:08 -0700)]
macos: dont send crossing events during grab

Fixes an issue where we can't drag scrollbars or text selections while
outside of the application window.

5 years agoMerge branch 'wip/chergert/gdk-macos-fixes' into 'master'
Matthias Clasen [Wed, 14 Oct 2020 19:10:11 +0000 (19:10 +0000)]
Merge branch 'wip/chergert/gdk-macos-fixes' into 'master'

GTK4: fix macos device state query for surfaces

See merge request GNOME/gtk!2690

5 years agoMerge branch 'wip/baedert/for-master'
Matthias Clasen [Wed, 14 Oct 2020 19:07:09 +0000 (15:07 -0400)]
Merge branch 'wip/baedert/for-master'

Leaving out the gboolean -> bool change.

5 years agopixbufutils: Pass calculated height value along
Timm Bäder [Tue, 13 Oct 2020 07:58:40 +0000 (09:58 +0200)]
pixbufutils: Pass calculated height value along

5 years agomain: Make sure we don't leak axes
Timm Bäder [Tue, 13 Oct 2020 07:56:48 +0000 (09:56 +0200)]
main: Make sure we don't leak axes

Mainly a change to appease the static analyzer

5 years agoinfobar: Remove unused include
Timm Bäder [Tue, 13 Oct 2020 07:56:32 +0000 (09:56 +0200)]
infobar: Remove unused include

5 years agooverlay: Remove empty finalize implementation
Timm Bäder [Tue, 13 Oct 2020 03:36:03 +0000 (05:36 +0200)]
overlay: Remove empty finalize implementation

5 years agogtk4-demo: Add missing margin-bottom
Timm Bäder [Sun, 11 Oct 2020 18:11:39 +0000 (20:11 +0200)]
gtk4-demo: Add missing margin-bottom

This was setting margin-end twice

5 years agogtk4-demo: Remove connection to removed signal
Timm Bäder [Sun, 11 Oct 2020 17:59:00 +0000 (19:59 +0200)]
gtk4-demo: Remove connection to removed signal

5 years agostacksidebar: Fold some functions into their only callers
Timm Bäder [Sun, 11 Oct 2020 17:56:22 +0000 (19:56 +0200)]
stacksidebar: Fold some functions into their only callers

5 years agostacksidebar: Set GtkListBox:show-separators
Timm Bäder [Sun, 11 Oct 2020 17:30:15 +0000 (19:30 +0200)]
stacksidebar: Set GtkListBox:show-separators

Instead of doing this ourselves

5 years agoframe: Remove need_resize logic
Timm Bäder [Sun, 11 Oct 2020 16:57:10 +0000 (18:57 +0200)]
frame: Remove need_resize logic

gtk_widget_set_parent() will queue a resize anyway.

5 years agowindowcontrols: gtk_widget_get_root() can return NULL
Timm Bäder [Sun, 11 Oct 2020 10:21:54 +0000 (12:21 +0200)]
windowcontrols: gtk_widget_get_root() can return NULL

5 years agowindowcontrols: decoration-layout is nullable
Timm Bäder [Sun, 11 Oct 2020 10:17:53 +0000 (12:17 +0200)]
windowcontrols: decoration-layout is nullable

5 years agostylecontext: Remove some unnused includes
Timm Bäder [Sun, 11 Oct 2020 09:58:11 +0000 (11:58 +0200)]
stylecontext: Remove some unnused includes

5 years agosnapshot: Refactor some device code
Timm Bäder [Sun, 11 Oct 2020 09:55:04 +0000 (11:55 +0200)]
snapshot: Refactor some device code

Make a bit clearer what this does.

5 years agoRemove unneeded gtkstylecontext.h includes
Timm Bäder [Sun, 11 Oct 2020 09:51:19 +0000 (11:51 +0200)]
Remove unneeded gtkstylecontext.h includes

5 years agostylecontext: Remove render_insertion_cursor()
Timm Bäder [Sun, 11 Oct 2020 09:40:31 +0000 (11:40 +0200)]
stylecontext: Remove render_insertion_cursor()

This is unused and there already is a snapshot alternative.

5 years agowidget: Remove gtk_widget_list_devices() from private header
Timm Bäder [Sun, 11 Oct 2020 08:26:25 +0000 (10:26 +0200)]
widget: Remove gtk_widget_list_devices() from private header

5 years agowindow: Remove unused struct member
Timm Bäder [Sun, 11 Oct 2020 08:22:20 +0000 (10:22 +0200)]
window: Remove unused struct member

5 years agowidget: Slightly update opacity docs
Timm Bäder [Sun, 11 Oct 2020 08:17:18 +0000 (10:17 +0200)]
widget: Slightly update opacity docs

5 years agogl renderer: Fix private function name
Timm Bäder [Sat, 10 Oct 2020 18:20:38 +0000 (20:20 +0200)]
gl renderer: Fix private function name

It's a GskGLRenderer, not a GskGLRender

5 years agogl renderer: Add more scale_x/scale_y code
Timm Bäder [Sat, 10 Oct 2020 17:57:29 +0000 (19:57 +0200)]
gl renderer: Add more scale_x/scale_y code

We really need all of this to be aware of both dimensions of course...

5 years agogl renderer: Remove two unused uniforms
Timm Bäder [Sat, 10 Oct 2020 17:50:21 +0000 (19:50 +0200)]
gl renderer: Remove two unused uniforms

5 years agogl renderer: return empty texture for too small blurred nodes
Timm Bäder [Sat, 10 Oct 2020 17:39:33 +0000 (19:39 +0200)]
gl renderer: return empty texture for too small blurred nodes

5 years agogl renderer: Use op builder to render flipped texture
Timm Bäder [Sat, 10 Oct 2020 17:03:02 +0000 (19:03 +0200)]
gl renderer: Use op builder to render flipped texture

Otherwise, we don't know about the uniform state

5 years agoshowrendernode: Plug GOptionContext memory leak
Timm Bäder [Sat, 10 Oct 2020 17:02:43 +0000 (19:02 +0200)]
showrendernode: Plug GOptionContext memory leak

5 years agogl renderer: Remove unused parameter
Timm Bäder [Sat, 10 Oct 2020 16:40:03 +0000 (18:40 +0200)]
gl renderer: Remove unused parameter

5 years agofilechooserwidget: Cosmetics
Timm Bäder [Sat, 10 Oct 2020 15:17:43 +0000 (17:17 +0200)]
filechooserwidget: Cosmetics

5 years agotestfilechooser: Stop listening to ::selection-changed
Timm Bäder [Sat, 10 Oct 2020 15:13:50 +0000 (17:13 +0200)]
testfilechooser: Stop listening to ::selection-changed

Doesn't exist anymore.

5 years agogl renderer: Use nearest filtering for textures in render_texture()
Timm Bäder [Sat, 10 Oct 2020 07:16:30 +0000 (09:16 +0200)]
gl renderer: Use nearest filtering for textures in render_texture()

Makes the output in the node editor a bit more bearable.

5 years agobuild: Only add -Wcast-align for gcc
Timm Bäder [Sat, 10 Oct 2020 06:43:52 +0000 (08:43 +0200)]
build: Only add -Wcast-align for gcc

Either we or clang needs to get its shit together about this warning.
But using it during development with clang just makes actually usable
warnings get lost in a flood of -Wcast-align warnings.

5 years agovulkan: Remove double initialization
Timm Bäder [Sat, 10 Oct 2020 06:42:53 +0000 (08:42 +0200)]
vulkan: Remove double initialization

Clang said:

../gsk/vulkan/gskvulkanrenderpass.c:250:5: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
    .render.node = node
    ^~~~~~~~~~~~~~~~~~~
../gsk/vulkan/gskvulkanrenderpass.c:249:13: note: previous initialization is here
    .type = GSK_VULKAN_OP_FALLBACK,
            ^~~~~~~~~~~~~~~~~~~~~~

5 years agogl renderer: Avoid some code duplication
Timm Bäder [Fri, 9 Oct 2020 16:20:28 +0000 (18:20 +0200)]
gl renderer: Avoid some code duplication

5 years agogl renderer: Flip texture in render_texture()
Timm Bäder [Thu, 8 Oct 2020 16:00:36 +0000 (18:00 +0200)]
gl renderer: Flip texture in render_texture()

5 years agoglsl: Add a comment
Timm Bäder [Thu, 8 Oct 2020 15:58:37 +0000 (17:58 +0200)]
glsl: Add a comment

5 years agogtkbuilder: Remove pointless function prototype
Timm Bäder [Thu, 8 Oct 2020 03:56:26 +0000 (05:56 +0200)]
gtkbuilder: Remove pointless function prototype

5 years agogdkgl: Remove flipping when downloading GL texture
Timm Bäder [Sat, 3 Oct 2020 09:48:36 +0000 (11:48 +0200)]
gdkgl: Remove flipping when downloading GL texture

This fix is correct and fixes:

  1) GL textures being upside down in the inspector. They are getting
     downloaded because they've been created in a different GL context
  2) GL textures being upside down in the cairo renderer (same reason)

However, it breaks the testsuite. We do the flipping via the projection
matrix, but most of the shaders don't care about that.

5 years agogdkgl: Stop getting the clip region from cairo
Timm Bäder [Thu, 1 Oct 2020 07:47:34 +0000 (09:47 +0200)]
gdkgl: Stop getting the clip region from cairo

Unused

5 years agogl renderer: simplify ->render() implementation a bit
Timm Bäder [Thu, 1 Oct 2020 07:38:39 +0000 (09:38 +0200)]
gl renderer: simplify ->render() implementation a bit

We already use self->scale_factor when initialized whole_surface,
so set self->scale_factor first.

5 years agoshaderbuilder: Print error message after source code
Timm Bäder [Thu, 1 Oct 2020 06:39:37 +0000 (08:39 +0200)]
shaderbuilder: Print error message after source code

My terminal scrolls down, so showing the error message last makes sense.

5 years agogl renderer: Add a helper to setup projection matrix
Timm Bäder [Thu, 1 Oct 2020 06:39:19 +0000 (08:39 +0200)]
gl renderer: Add a helper to setup projection matrix

5 years agogl renderer: Ignore rendering if accumulated opacity is too small
Timm Bäder [Thu, 1 Oct 2020 06:29:10 +0000 (08:29 +0200)]
gl renderer: Ignore rendering if accumulated opacity is too small

5 years agogdkgl: Rename function
Timm Bäder [Thu, 1 Oct 2020 04:24:20 +0000 (06:24 +0200)]
gdkgl: Rename function

This returns the name of the shader type.

5 years agounblurred outset shadow shader: Use premultiply()
Timm Bäder [Thu, 1 Oct 2020 04:18:37 +0000 (06:18 +0200)]
unblurred outset shadow shader: Use premultiply()

5 years agogl renderer: Use premultiply() in inset shadow shader`
Timm Bäder [Wed, 30 Sep 2020 04:00:50 +0000 (06:00 +0200)]
gl renderer: Use premultiply() in inset shadow shader`

5 years agoglarea demo: Add min size to gl area
Timm Bäder [Tue, 29 Sep 2020 17:54:50 +0000 (19:54 +0200)]
glarea demo: Add min size to gl area

5 years agogdkgl: Remove unused cairo_get_matrix() call
Timm Bäder [Mon, 28 Sep 2020 16:39:01 +0000 (18:39 +0200)]
gdkgl: Remove unused cairo_get_matrix() call

5 years agocolorscale: Refactor creating the hue texture
Timm Bäder [Sat, 26 Sep 2020 08:12:33 +0000 (10:12 +0200)]
colorscale: Refactor creating the hue texture

Make this a bit shorter and don't call gtk_hsv_to_rgb in the inner
loop as that is unnecessary.

5 years agocolorplane: Remove (un)realize handlers
Timm Bäder [Sat, 26 Sep 2020 08:00:34 +0000 (10:00 +0200)]
colorplane: Remove (un)realize handlers

Creating the texture in realize() is unnecessary these days, since we
can just rely on size_allocate to do that.

5 years agocolorutils: Refactor hsv_to_rgb and fold into only caller
Timm Bäder [Sat, 26 Sep 2020 07:59:27 +0000 (09:59 +0200)]
colorutils: Refactor hsv_to_rgb and fold into only caller

5 years agocolorplane: Refactor create_texture()
Timm Bäder [Sat, 26 Sep 2020 07:39:31 +0000 (09:39 +0200)]
colorplane: Refactor create_texture()

Create a R8G8B8 texture here so we don't waste memory and do work for
an alpha channel we don't care about.

5 years agocolorutils: Remove unused macro
Timm Bäder [Fri, 25 Sep 2020 19:31:49 +0000 (21:31 +0200)]
colorutils: Remove unused macro

5 years agocolorplane: Whitespace
Timm Bäder [Fri, 25 Sep 2020 19:11:37 +0000 (21:11 +0200)]
colorplane: Whitespace

5 years agoGenerate introspection for GdkWayland API
Emmanuele Bassi [Mon, 12 Oct 2020 13:05:52 +0000 (14:05 +0100)]
Generate introspection for GdkWayland API

Like we do for GdkX11. We can't use all of the public C API, but we can
expose enough type information to allow non-C developers to actually
check if they are running the Wayland GDK backend or not—plus some
additional Wayland-specific API.

5 years agoAdd type annotations for GdkWayland API
Emmanuele Bassi [Mon, 12 Oct 2020 13:04:13 +0000 (14:04 +0100)]
Add type annotations for GdkWayland API

The GdkWayland API takes generic GDK types and performs a run time
check, which means we need to properly annotate the actual expected
type in order to have methods recognised as such.

5 years agoSkip GdkWayland symbols that use wayland-client types
Emmanuele Bassi [Mon, 12 Oct 2020 13:02:54 +0000 (14:02 +0100)]
Skip GdkWayland symbols that use wayland-client types

The wayland-client API does not have introspection annotations, so we
can't use these types anyway.